e2f5c769602d675fb415e82d3da4fd98b6e4c407,src/org/exist/http/RESTServer.java,RESTServer,doPost,#DBBroker#HttpServletRequest#HttpServletResponse#String#,486
Before Change
try {
// check if path leads to an XQuery resource.
// if yes, the resource is loaded and the XQuery executed.
resource = (DocumentImpl) broker.getXMLResource(pathUri, Lock.READ_LOCK);
if (resource != null) {
if (resource.getResourceType() == DocumentImpl.BINARY_FILE &&
"application/xquery".equals(resource.getMetadata().getMimeType())) {
After Change
try {
// check if path leads to an XQuery resource.
// if yes, the resource is loaded and the XQuery executed.
resource = broker.getXMLResource(pathUri, Lock.READ_LOCK);
if (resource != null) {
if (resource.getResourceType() == DocumentImpl.BINARY_FILE &&
"application/xquery".equals(resource.getMetadata().getMimeType())) {